package com.sky.mapper;

import com.sky.vo.DishItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetMealDishMapper {

    List<Long> getSetmealByDishIds(List<Long> ids);

    @Select("select sd.name, sd.copies,d.image,d.description"+
            " from setmeal_dish sd left join dish d on sd.dish_id = d.id"+
            " where sd.setmeal_id = #{id}")
    List<DishItemVO> getDishItemById(Long id);
}
